<div class="middle-bar order_form">
	<div class="row" style="margin: 20px;">
		<h3>Đơn đặt hàng</h3>
		<?php if(Yii::app()->user->hasFlash('success')): ?>
			<div class="flash-success">
    			<?php echo Yii::app()->user->getFlash('success'); ?>
			</div>
		<?php endif; ?>
		<div class="divide"></div>
	</div>
    <?php $form=$this->beginWidget('CActiveForm', array(
        'id'=>'order-form',
         'enableClientValidation'=>true,
            'clientOptions'=>array(
                    'validateOnSubmit'=>true,
            ),   
        )); 
    ?>
<div class="row">
	<div class="form-zone">
		<?php echo $form->labelEx($model, 'name', array('class'=>'labelex')); ?>
        <?php echo $form->textField($model,'name',array('size'=>30,'class'=>'userform','autoComplete'=>'on')); ?>
        <?php echo $form->error($model,'name', array('style'=>'color: red;')); ?>
    </div>
    
    <div class="form-zone">
		<?php echo $form->labelEx($model, 'email', array('class'=>'labelex')); ?>
        <?php echo $form->textField($model,'email',array('size'=>30,'class'=>'userform','autoComplete'=>'on')); ?>
        <?php echo $form->error($model,'email', array('style'=>'color: red;')); ?>
    </div>
    
    <div class="form-zone">
		<?php echo $form->labelEx($model, 'phone', array('class'=>'labelex')); ?>
        <?php echo $form->textField($model,'phone',array('size'=>30,'class'=>'userform','autoComplete'=>'on')); ?>
        <?php echo $form->error($model,'phone', array('style'=>'color: red;')); ?>
    </div>
    <div class="form-zone">
		<?php echo $form->labelEx($model, 'order_detail', array('class'=>'labelex')); ?>
        <?php echo $form->textArea($model,'order_detail',array('size'=>30,'class'=>'userform','autoComplete'=>'on', 'style'=>'width: 100%;')); ?>
        <?php echo $form->error($model,'order_detail', array('style'=>'color: red;')); ?>
        <div class="hint">Vui lòng nhập thông tin về số đo, về size của sản phẩm...</div>
    </div> 
</div>
    <div class="row">
    	<div class="divide"></div>
         <button class="buttonOrder">
			<span class="buttonText">Đặt hàng</span>
		</button>
    </div>
    <?php $this->endWidget(); ?>
</div>